Flash copy for disaster recovery (dr) testing

ABSTRACT

In one embodiment, a system includes a processor and logic integrated with and/or executable by the processor, the logic being configured to cause the processor to define a disaster recovery (DR) family, the DR family having one or more DR clusters accessible to a DR host and one or more production clusters accessible to a production host, wherein the DR host is configured to replicate data from the one or more production clusters to the one or more DR clusters, create a backup copy of data stored to the one or more production clusters, store the backup copy to the one or more DR clusters, establish a time-zero in the DR family, and share a point-in-time data consistency at the time-zero among all clusters within the DR family. Other systems, methods, and computer program products are presented for DR testing, according to more embodiments.

BACKGROUND

The present invention relates to data storage, and more particularly, tosystems and methods configured to enable efficient flash copy fordisaster recovery (DR) testing.

Some data storage systems are capable of creating a point-in-time copyof virtual tapes for DR testing. One such data storage system is IBM'sTS7700 Grid Architecture. This capability allows business operations tohelp simulate and test the ability to resume in the event of a productor a site failure. In such a grid configuration, up to six clusters (orsites) are interconnected and are configured to replicate data createdon any of the clusters in the configuration. As part of a total systemsdesign, business continuity procedures are developed, to instructinformation/technology) personnel in the actions that should be taken inthe event of a system failure. Testing of those procedures (also knownas DR testing) is performed either during initial installation of thesystem and/or at some regular interval after initial installation.

During the DR testing, users make an attempt to simulate a true disasterwhen one or more clusters are unavailable at a first cluster or site(such as a production cluster or site). A DR host system is restored andcluster data is accessed through a user's predefined DR cluster orclusters. Even though the predefined cluster or clusters have providedsome DR testing features, generally, to help the user simulate a truedisaster, there are still a few problems related to the DR testing withsuch clusters.

One such problem is the ability to support a complete set ofpoint-in-time copies of all virtual tapes for DR testing use only. In areal world case, the point in time in which the production cluster (orproduction environment) becomes unavailable is not predictable, thus thestate of the cluster or clusters is unpredictable with respect to theconsistency of the replicated data. Data may have not yet completedreplication to a DR cluster or site, or the replication for some datamay not have even started. With conventional DR testing, copies continueafter the DR testing has started, which provides misleading resultsbecause the copy would have stopped and the data not be available had areal disaster taken place. In addition, if copies are not available onthe DR cluster or clusters, the DR host system will simply access remotecontent through the grid, which also typically is not possible in a truedisaster scenario. Also, data on a production cluster which is modifiedvia the production host will also be modified on the other DR cluster(s)or site(s) of the grid.

In contrast to this capability, users prefer to mimic the consistency ofthe DR cluster(s) or site(s) at a time-zero (time of the simulateddisaster). Only data consistent within the DR cluster(s) or site(s) attime zero should be accessible to a DR test host. Some users accomplishthis today by disconnecting, the DR cluster(s) or site(s) from theproduction cluster(s) or site(s). But most users require the actualproduction data to still continue to replicate to the DR cluster(s) orsite(s) so that in the event of a true (not simulated) disaster, thisdata is properly backed up.

Flash copy concepts exist in some storage products which offer businesscontinuance testing, but the consistency awareness is limited to asingle node or a cluster. However, some storage products offering gridarchitecture allow a user to have more than one cluster or siterepresenting DR data. A method to flash more than one cluster/node inorder to create a composite consistency point in time is not currentlyavailable.

This is due to several reasons. First, daring a DR test, it is preferredthat both a DR host and a production host are able to mourn a virtualtape with a same identifier (such as a volume serial number “volser”) atthe same time. However, with conventional systems, these mounts areserialized because of how the virtual tape ownership concept operates,restricting access to any virtual tape to only one accessing system at atime. In other words, at any given time, only one host is allowed tomount a virtual tape in current grid architectures. In order to performa DR testing as desired by users, this protected concept of mounting avirtual tape with one host at any given time must be relaxed or mothtied.

In addition, production hosts may change an attribute of data orvolumes, reuse data or volumes, and/or modify data or volumes. All theseuse cases should not alter the time-zero view at the DR cluster(s) orsite(s). Existing flash copy solutions are able to accommodate datachanges, but keeping track of volume attribute changes is not currentlyavailable in grid architectures.

BRIEF SUMMARY

In one embodiment, a system includes a processor and logic integratedwith and/or executable by the processor, the logic being configured tocause the processor to define a disaster recovery (DR) family, the DRfamily having one or more DR clusters accessible to a DR host and one ormore production clusters accessible to a production host, wherein the DRhost is configured to replicate data from the one or more productionclusters to the one or more DR clusters, create a backup copy of datastored to the one or more production clusters, store the backup copy tothe one or more DR clusters, establish a time-zero in the DR family, andshare a point-in-time data consistency at the time-zero among allclusters within the DR family.

In another embodiment, a method for DR testing includes defining a DRfamily, the DR family having one or more DR clusters accessible to a DRhost and one or more production clusters accessible to a productionhost, wherein the DR host is configured to replicate data from the oneor more production clusters to the one or more DR clusters, creating abackup copy of data stored to the one or more production clusters,storing the backup copy to the one or more DR clusters, establishing atime-zero in the DR family for DR testing, and sharing a point-in-timedata consistency at the time-zero among all clusters within the DRfamily.

In yet another embodiment, a computer program product for DR testingincludes a computer readable storage medium having, program codeembodied therewith, the program code being readable and/or executable bya processor to define a DR family, the DR family having one or more DRclusters accessible to a DR host and one or more production clustersaccessible to a production host, wherein the DR host is configured toreplicate data from the one or more production clusters to the one ormore DR clusters, create a backup copy of data stored to the one or moreproduction clusters, store the backup copy to the one or more DRclusters, establish a time-zero in the DR family, and share apoint-in-time data consistency at the time-zero among all clusterswithin the DR family.

Other aspects and embodiments of the present invention will becomeapparent from the following detailed description, which, when taken inconjunction with the drawings, illustrates by way of example theprinciples of the invention.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

FIG. 1 illustrates a network storage system, according to oneembodiment,

FIG. 2 illustrates a simplified tape drive of a tape-based data storagesystem, according to one embodiment.

FIGS. 3A-3D show a system for replicating data, according to oneembodiment.

FIG. 4 shows a flowchart of a method, according to one embodiment.

DETAILED DESCRIPTION

The following description is made for the purpose of illustrating thegeneral principles of the present invention and is not meant to limitthe inventive concepts claimed herein. Further, particular featuresdescribed herein can be used in combination with other describedfeatures in each of the various possible combinations and permutations.

Unless otherwise specifically defined herein, all terms are to be giventheir broadest possible interpretation including meanings implied fromthe specification as well as meanings understood by those skilled in theart and/or as defined in dictionaries, treatises, etc.

It must also be noted that, as used in the specification and theappended claims, the singular forms “a,” “an,” and “the” include pluralreferents unless otherwise specified. It will be further understood thatthe terms “comprises” and/or “comprising” when used in thisspecification, specify the presence of stated features, integers, steps,operations, elements, and/or components, bin do not preclude thepresence or addition of one or more other features, integers, steps,operations, elements, components, and/or groups thereof.

According to some embodiments presented herein, grid architectures maybe enhanced to allow for the following capabilities: defining specificgroups of clusters and/or sites (“a DR family”) which share a copy ofdata from one or more virtual, tapes (“backup copy”), making apoint-in-time copy (“snapshot,” which may be a flash copy or some othersuitable point-in-time copy known in the such) of a virtual, tape attime-zero, managing the ownership of the snapshot independent of theownership for the live virtual tape instance (which keeps changing) andthe backup copy, making a virtual tape comprising the snapshotaccessible to the DR host only when the snapshot is made consistentbefore the time-zero, using the live copy of the virtual tape instead ofa snapshot to satisfy a private/specific mount request from a DR hostwhen there is no consistent snapshot available within the DR family, andintegrating selective device access control with the snapshot function(which allows multiple hosts to view their own set of a snapshots ofvirtual tapes).

In one general embodiment, a system includes a processor and logicintegrated with and/or executable by the processor, the logic beingconfigured to cause the processor to define a disaster recovery (DR)family, the DR family having one or more DR clusters accessible to a DRhost and one or more production clusters accessible to a productionhost, wherein the DR host is configured to replicate data from the oneor more production clusters to the one or more DR clusters, create abackup copy of data stored to the one or more production clusters, storethe backup copy to the one or more DR clusters, establish a time-zero inthe DR family, and share a point-in-time data consistency at thetime-zero among all clusters within the DR family.

In another general embodiment, a method for DR testing includes defininga DR family, the DR family having one or more DR clusters accessible toa DR host and one or more production clusters accessible to a productionhost, wherein the DR host is configured to replicate data from the oneor more production clusters to the one or more DR clusters, creating, abackup copy of data stored to the one or more production clusters,storing the backup copy to the one or more DR clusters, establishing atime-zero in the DR family for DR testing, and sharing a point-in-timedata consistency at the time-zero among all clusters within the DRfamily.

In yet another general embodiment, a computer program product for DRtesting includes a computer readable storage medium having program codeembodied therewith, the program code being readable and/or executable bya processor to define a DR family, the DR family having one or more DRclusters accessible to a DR host and one or more production clustersaccessible to a production host, wherein the DR host is configured toreplicate data from the at one or more production clusters to the one ormore DR clusters, create a backup copy of data stored to the one or moreproduction clusters, store the backup copy to the one or more DRclusters, establish a time-zero in the DR family, and share apoint-M-time data consistency at the time-zero among all clusters withinthe DR family.

As will be appreciated by one skilled in the art, aspects of the presentinvention may be embodied as a system, method or computer programproduct. Accordingly, aspects of the present invention may take the formof an entirely hardware embodiment an entirety software embodiment(including firmware, resident software, micro-code, etc.) or anembodiment combining software and hardware aspects that may allgenerally be referred to herein as a “circuit,” “module” or “system.”Furthermore, aspects of the present invention may take the form of tocomputer program product embodied in one or more computer readablemedium(s) having computer readable program code embodied thereon.

Any combination of one or more computer readable medium(s) may beutilized. The computer readable medium may be a computer readable signalmedium or a computer readable storage medium. A computer readablestorage medium may be, for example, but not limited to, an electronic,magnetic, optical, electromagnetic, infrared, or semiconductor system,apparatus, or device, or any suitable combination of the foregoing. Morespecific examples (a non-exhaustive list) of the computer readablestorage medium would include the following: an electrical connectionhaving one or more wires, a portable computer diskette, a hard disk, arandom access memory (RAM), a read-only memory (ROM), an erasableprogrammable read-only memory (EPROM or Flash memory), an optical fiber,a portable compact disc read-only memory (CD-ROM), an optical storagedevice, a magnetic storage device, or any suitable combination of theforegoing. In the context of this document, a computer readable storagemedium may be any tangible medium that can contain, or store a programfor use by or in connection with an instruction execution system,apparatus, or device.

A computer readable signal medium may include a propagated data signalwith computer readable program code embodied therein, for example, inbaseband or as part of a carrier wave. Such a propagated signal may takeany of a variety of forms, including, but not limited to,electro-magnetic, optical, or any suitable combination thereof. Acomputer readable signal medium may be any computer readable medium thatis not a computer readable storage medium and that can communicate,propagate, or transport a program for use by or in connection with aninstruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmittedusing any appropriate medium, including but not limited to wireless,wireline, optical fiber cable, RF, etc., or any suitable combination ofthe foregoing.

Computer program code for carrying out operations for aspects of thepresent invention may be written in any combination of one or moreprogramming languages, including an object oriented programming languagesuch as Java, Smalltalk, C++ or the like and conventional proceduralprogramming languages, such as the “C” programming language or similarprogramming languages. The program code may execute entirely on theuser's computer, partly on the user's computer, as a stand-alonesoftware package, partly on the user's computer and partly on a remotecomputer or entirely on the remote computer or server. In the latterscenario, the remote computer may be connected to the user's computerthrough any type of network, including a local area network (LAN) or awide area network (WAN), or the connection may be made to an externalcomputer (for example, through the Internet using an Internet ServiceProvider).

Aspects of the present invention are described below with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems) and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer program instructions. These computer program instructions maybe provided to a processor of a general purpose computer, specialpurpose computer, or other programmable data processing apparatus toproduce a machine, such that the instructions, which execute via theprocessor of the computer or other programmable data processingapparatus, create means for implementing the functions/acts specified inthe flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computerreadable medium that can direct a computer, other programmable dataprocessing apparatus, or other devices to function in a particularmanner, such that the instructions stored in the computer readablemedium produce an article of manufacture including instructions whichimplement the function/act specified in the flowchart and/or blockdiagram block or blocks.

The computer program instructions may also be loaded onto a computer,other programmable data processing apparatus, or other devices to causea series of operational steps to be performed on the computer, otherprogrammable apparatus or other devices to produce a computerimplemented process such that the instructions which execute on thecomputer or other programmable apparatus provide processes forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks.

Moreover, a system according to various embodiments may include aprocessor and logic integrated with and/or executable by the processor,the logic being configured to perform one or more of the process stepsrecited herein. By integrated with, what is meant is that the processorhas logic embedded therewith as hardware logic, such as an applicationspecific integrated circuit (ASIC), a field programmable gate array(FPGA), etc. By executable by the processor, what is meant is that thelogic is hardware logic, software logic such as firmware, operatingsystem, etc., or some combination of hardware and software logic that,is accessible by the processor and configured to cause the processor toperform some functionality upon execution by the processor. Softwarelogic may be stored on local and/or remote memory of any memory type, asknown in the art. Any processor known in the art may be used, such as asoftware processor module and/or a hardware processor such as an ASIC, aFPGA, a central processing unit (CPU), an integrated circuit (IC), etc.

Referring now to FIG. 1, a schematic of a network storage system 10 isshown according to one embodiment. This network storage system 10 isonly one example of a suitable storage system and is not intended tosuggest any limitation as to the scope of use or functionality ofembodiments of the invention, described herein. Regardless, networkstorage system 10 is capable of being implemented and/or performing anyof the functionality set forth hereinabove.

In the network storage system 10, there is a computer system/server 12,which is operational with numerous other general purpose or specialpurpose computing system environments or configurations. Examples ofwell-known computing systems, environments, and/or configurations thatmay be suitable fir use with computer system/server 12 include, but arenot limited to, personal computer systems, server computer systems, thinclients, thick clients, handheld or laptop devices, multiprocessorsystems microprocessor-based systems, set top boxes, programmableconsumer electronics, network PCs, minicomputer systems, mainframe,computer systems, and distributed cloud computing environments thatinclude any of the above systems or devices, and the like.

Computer system/server 12 may be described in the general context ofcomputer system-executable instructions, such as program modules, beingexecuted by a computer system. Generally, program modules may includeroutines, programs, objects components, logic, data structures, and soon that perform particular tasks or implement particular abstract datatypes. Computer system/server 12 may be practiced in distributed cloudcomputing environments where tasks are performed by remote processingdevices that are linked through a communications network. In adistributed cloud computing environment, program modules may be locatedin both local and remote computer system storage media including memorystorage devices.

As shown in FIG. 1, computer system/server 12 in the network storagesystem 10 is shown in the form of a general-purpose computing device.The components of computer system/server 12 may include, but are notlimited to, one or more processors 16 or processing units, a systemmemory 28, and a bus 18 that couples various system components includingsystem memory 28 to processor 16.

Bus 18 represents one or more of any of several types of bus structures,including a memory bus or memory controller, a peripheral bus, anaccelerated graphics port, and a processor or local bus using any of avariety of bus architectures. By way of example, and not limitation,such architectures include Industry Standard Architecture (ISA) bus,Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, VideoElectronics Standards Association (VESA) local bus, and PeripheralComponent Interconnects (PCI) bus.

Computer system/server 12 typically includes a variety of computersystem readable media. Such media may be any available media that isaccessible by computer system/server 12, and it includes both volatileand non-volatile media, removable and non-removable media.

System memory 28 may include computer system readable media in the formof volatile memory, such as random access memory (RAM) 30 and/or cachememory 32. Computer system/server 12 may further include otherremovable/non-removable, volatile/non-volatile computer system storagemedia. By way of example only, storage system 34 may be provided forreading from and writing to a non-removable, non-volatile magneticmedia—not shown and typically called a “hard disk,” which may beoperated in a HDD. Although not shown, a magnetic disk drive for readingfrom and writing to a removable, non-volatile magnetic disk (e.g., a“floppy disk”), and an optical disk drive for reading from or writing toa removable, non-volatile optical disk such as a CD-ROM, DVD-ROM orother optical media may be provided. In such instances, each may beconnected to bus 18 by one or more data media interfaces. As will befurther depicted and described below, memory 28 may include at least oneprogram product having a set (e.g., at least one) of program modulesthat are configured to carry out the functions of embodiments describedherein.

Program/utility 40, having a set (at least one of program modules 42,may be stored in memory 28 by way of example, and not limitation, aswell as an operating system, one or more application programs, otherprogram modules, and program data. Each of the operating system, one ormore application programs, other program modules, and program data orsome combination thereof, may include an implementation of a networkingenvironment. Program modules 42 generally carry out the functions and/ormethodologies of embodiments of the invention as described herein.

Computer system/server 12 may also communicate with one or more externaldevices 14 such as a keyboard, a pointing device, a display 24, etc.;one or more devices that enable a user to interact with computersystem/server 12; and/or any devices (e.g., network card, modem, etc.)that enable computer system/server 12 to communicate with one or moreother computing devices. Such communication may occur via Input/Output(I/O) interfaces 22. Still yet, computer system/server 12 maycommunicate with one or more networks such as a local area network(LAN), a general wide area network (WAN), and/or a public network (e.g.,the Internet) via network adapter 20. As depicted, network adapter 20communicates with the other components of computer system/server 12 viabus 18. It should be understood that although not shown, other hardwareand/or software components could be used in conjunction with computersystem/server 12. Examples, include, but are not limited to: microcode,device drivers, redundant processing units, external disk drive arrays,RAID systems, tape drives, and data archival storage systems, etc.

FIG. 2 illustrates a simplified tape drive 100 of a tape-based datastorage system, which may be employed according to various embodiments.While one specific implementation of a tape drive is shown in FIG. 2, itshould be noted that the embodiments described herein may be implementedin the context of any type of tape drive system.

As shown, a tape supply cartridge 120 and a take-up reel 121 areprovided to support a tape 122. One or more of the reels may form partof a removable cassette and are not necessarily part of the tape drive100. The tape drive, such as that illustrated in FIG. 2, may furtherinclude drive motor(s) to drive the tape supply cartridge 120 and thetake-up reel 121 to move the tape 122 over a tape head 126 of any type.

Guides 125 guide the tape 122 across the tape head 126. Such tape head126 is in turn coupled to a controller assembly 128 via a cable 130. Thecontroller 128 typically comprises a servo channel 134 and data channel136 which includes data flow processing. It controls reel motion (notshown in FIG. 2) and bead functions, such as track following, writing,reading, etc. The cable 130 may include read/write circuits to transmitdata to the head 126 to be recorded on the tape 122 and to receive dataread by the head 126 from the tape 122. An actuator 132 moves the head126 to a set of tracks on the tape 122 in order to perform a write or aread operation.

In one embodiment, the tape drive 100 may comprise a data buffer 138which is accessible by the tape drive 100 and the controller 128. Thisdata buffer 138 may be split into one or more sections, with one sectionbeing a reserved data buffer 140 to be used for storage of partial datasets during reading operations from the tape 122.

An interface may also be provided for communication between the tapedrive 100 and a host (integral or external) to send and receive the dataand for controlling the operation of the tape drive 100 andcommunicating the status of the tape drive 100 to the host, as would beunderstood by one of skill in the art.

Some terms used herein are now described according, to one embodiment.

A backup copy is a copy of a virtual tape. All virtual tape copies in acurrent or previous release are referred to as backup copies, while thelatest generation of the virtual tape is the live copy. This is the liveinstance of a volume in a cluster. Meaning, it is a volume that mayexist in the live read-write file system or an instance that may bemodified by replication and/or production activity.

A flash copy is a snapshot of a backup copy or live copy at a certaintime. The content in the flash copy is fixed and does not change even ifthe live copy or backup copy are modified. A flash copy may not exist ifa live volume or backup copy was not present at the certain time. Inaddition, a flash copy does not imply consistency with the live copy, asa backup copy may have been used for the flash copy and was inconsistentwith the live copy at the certain time, which would result in a flashcopy which is inconsistent with the live copy.

A disaster recovery (DR) family is a set of clusters which serve apurpose of disaster recovery. Chic to seven clusters may be assigned toa DR family, in one approach. Each DR family may have a unique indexvalue, 1 to 8 (total 8) in this approach. The DR family may be used todetermine which clusters should be affected by a flash request via ahost command line or web interface It also informs microcode of whichclusters are applicable during ownership negotiation of the ownership ofa flash copy or the selection of a cluster to satisfy a virtual tapemount which targets a flash copy. A cluster may exist in more than oneDR family at a time. Each DR family has its own time-zero and allclusters in the same DR family share the time-zero and other DR familyattributes.

A flash family (FF) is a subset of or all clusters in a DR Family. Thoseclusters which at time zero implemented a flash copy of all relevantvolumes.

A write protect mode is when writing is prohibited on a cluster, so thatany host commands fail when they are issued to logical devices in thatcluster and attempt to modify a volume's data or attributes. The flashcopy is created on a cluster when it is in the write protect mode onlyin one approach.

Write protect exclusion category indicates all volumes that are not inwrite protect mode. This category is usually used to allow a DR host torun write jobs on write protected cluster.

Write protected category indicates all volumes that are in write protectmode. The microcode may view volumes assigned to this category aswrite-protected.

Time-zero may indicate a time when a flash copy is generated within a DRfamily for DR testing, e.g., it simulates a disaster starting. Thetime-zero mimics the time when real disaster happens, and a user mayestablish the time-zero using a host console command or web interface,in some approaches.

Virtual tape user data indicates data of a virtual tape that is used bya customer to store information. It may be stored in a UNIX file systemor some other suitable storage system. It is contrasted to virtual tapemetadata, which stores attributes of a virtual tape, such as category,constructs, data level, ownership, etc. These may be stored in adatabase.

A DR family is a set of clusters or sites in a grid architecture whichare configured for disaster recovery operations. Each cluster or sitemay comprise one or more storage nodes which represent a storage device.A cluster or site may exist in more than one DR family at a time,according to one approach. Each DR family has its own time-zerorepresenting the time at which the copy was made that is represented bythe DR family, and all clusters in the same DR family share theidentical time-zero, along with all other DR family attributes. The DRfamily is used to determine which clusters or sites are affected by asnapshot initiation request, which may be initiated by a user orautomatically according to some predetermined, routine or schedule.

According to one embodiment, the value of the time-zero is notestablished when a DR family is defined, and instead is established whena user enables snapshot within the DR family, such as via the microcode.The time-zero value is then shared among all clusters or sites withinthe DR family.

When a snapshot request is issued against a DR family, such as by auser, a point-in-time snapshot or copy of the file system, whichincludes a user data portion of all virtual tapes, is created on allclusters or sites within the DR family, according to one embodiment. Thetime-zero is established when the file system snapshot is completedwithin the DR family and it is shared with all clusters or sites withinthe DR family. A metadata portion of the virtual tapes are not createdat this stage, in one approach.

In order to make a snapshot of a virtual tape accessible from a DR host,not only the snapshot of the user data portion, but also the snapshot ofthe metadata portion is generated. Some grid architectures are capableof handling four million virtual tapes or more. It may take a muchlonger time to create a snapshot of the whole database in comparisonwith the time needed to create a snapshot of the user data portion only(currently, some file systems may take a snapshot that completes withinseveral seconds). Therefore, in one embodiment, a method to createmetadata of virtual tapes efficiently is presented.

The microcode, according to one embodiment, solves this issue bycreating the snapshot of metadata selectively and based on an event.This allows the microcode to create the snapshot of metadata whichreally needs to be created, and not all metadata indiscriminately.

In one embodiment, the point-in-time snapshot of the metadata of avirtual tape may be created only when the virtual tape is in a‘write-protected’ state. As described above, existing ‘selectivewrite-protect’ functionality allows users to define virtual tapes whichare used by the DR host only. This means the production host is unawareof the volumes, and therefore the DR clusters do not need to make asnapshot of such volumes. Thus, it is enough for the microcode create asnapshot of virtual tapes assigned to write-protected categories (whichare indicated as needing a snapshot taken thereof, possibly by the useror automatically according to some parameters or conditions beingsatisfied).

According to another embodiment, a point-in-time snapshot of themetadata of a virtual tape may be created only when specific eventsoccur. Not all write-protected volumes are used in DR testing or somethat are used for some DR testing may not be used in other DR testing.Meaning, taking a snapshot of the metadata of all virtual tapes is notrequired in most DR testing. Therefore, in this embodiment, themicrocode creates a snapshot of the metadata of a virtual tape only whendata consistency of the volume or key attributes (such as category,type, location, etc.) of the volume is changed, or, the DR host mountsthe virtual tape. Specifically, according to one embodiment, themicrocode will create a snapshot of the metadata of a write protectedvirtual tape when all the following conditions are true:

-   -   1. Time-zero has been established in the DR family (i.e., a        snapshot of the user data portion of the virtual tapes has        already been created),    -   2. One of following events occurs on the write protected virtual        tape:        -   a. The production host is or has modified data content            and/or key attributes of the virtual tape.        -   b. The DR host mounts the snapshot of the volume and the            snapshot of the metadata has not yet been generated.

The unique ownership of a snapshot may be defined and managedindependently to the ownership of an active virtual tape (e.g., the livecopy). In this embodiment, the limitation that ownership of all copiesof data is unified is overcome by managing the ownership of a snapshotindependent of the ownership of a live copy so that a production hostand a DR host may mount a virtual tape with the same identifier (such asa volume serial number “volser” or some other known type of identifierunderstood by each component in the system) at the same time (e.g., theproduction host mounts the live copy and the DR host mounts thesnapshot). This may be managed using the microcode, as would beunderstood by one of skill in the art.

As described previously, once a snapshot of the metadata is created on aDR cluster within the DR family, the ownership of a snapshot may bemanaged, such as via the microcode, independent of a live copy becausethe microcode uses the snapshot version of the metadata when it handlesthe snapshot, and not the live copy, according to one embodiment. Themicrocode leaves the ownership of the snapshot virtual tape in an“ownership undetermined” state when the snapshot of the metadata iscreated first. This causes the ownership of the snapshot virtual tape tobe left in this state until accessed by a DR host, e.g., the microcodeleaves the ownership alone. Leaving the ownership in the undeterminedstate until it is “really needed” (e.g., accessed by the DR host) allowsthe microcode to reduce its impact to the production host's jobperformance. If the (metadata) snapshot is created by DR host mountprocessing, the ownership is determined within the DR family immediatelyby the ownership discovering process. The scope of the ownershipdiscovery process is limited to being only within the DR family.

According to another embodiment, a point-in-time copy of a virtual tapeis ensured to be accessible from the DR host only when the virtual tapewas made consistent before the time-zero. During a DR test, the DRclusters within a DR family provide a view of volume consistency at thetime-zero to a DR host. This means that it is determined, such as by themicrocode, which cluster or clusters within the DR family comprises sucha copy when a DR host tries mount the snapshot. This embodiment allowsfor verification that only up-to-date copies will be presented as apoint-in-time copy, and not some copy made previously which may be outof date and inconsistent with the live copy or a backup copy made laterwhich would not mimic a true disaster.

Now referring to FIGS. 3A-3D, virtual tape mounts initiated by a DR host308 are shown according to some exemplary embodiments. System 300comprises a production host 306 configured to access data on one or moreproduction clusters 312, 314, at a production site 302. System 300 alsoincludes the DR host 308 configured to access data on one or more DRclusters 316, 318 at a DR site 304. The production site 302 and DR site304 are connected by a network 310, such as grid network, WAN, etc. Theproduction site 302 comprises one or more production clusters. In thisexemplary embodiment, Cluster 0 (CL0) 312 and Cluster 1 (CL1) 314 areshown in the production site 302; however, any number of productionclusters may be used. The DR site 304 comprises one or more DR clusters.In this exemplar embodiment, Cluster 2 (CL2) 316 and Cluster 3 (CL3) 318are shown in the DR site 304; however, any number of DR clusters may beused. Furthermore, production host 306 has access to one or more directaccess storage devices (DASDs) 344, while DR host 308 has access to oneor more DASDs 346. The DASDs 344, 346 may be used to store any datauseful in copying procedures and/or hosting functions of the productionhost 306 and/or DR host 308, in various approaches.

Each production cluster may include, host, store, and/or represent oneor more instances of one or more data units. An instance may be a file,a directory, a volume, a virtual tape, or any other subunit of data aswould be known by one of skill in the art. One or more productionclusters may comprise duplicate data to one or more other productionclusters. As shown in this exemplary embodiment, CL0 312 comprises twovirtual tapes, virtual tape 320 having a volser of A00000 and virtualtape 322 having a volser of A00001, and CL1 314 comprises two virtualtapes, virtual tape 324 having a wiser of A00000 and virtual tape 326having a volser of A00001. However, an number and/or type of instancesof data may be represented in each production cluster.

Moreover, each DR cluster may include, host, store, and/or represent oneor more instances of one or more data units. An instance may be a file,a directory, a volume, a virtual tape, or any other subunit of data aswould be known by one of skill in the art. One or more DR clusters maycomprise duplicate data (e.g., a backup copy) to data that is stored onone or more other DR clusters and/or production clusters. As shown inthis exemplary embodiment, CL2 316 comprises two backup copies, backupcopy of volser A00000 328 and backup copy of volser A00001 330, and CL3318 comprises two backup copies, backup copy of volser A00000 332 andbackup copy of volser A00001 334. However, any number and/or type ofbackup copies and/or instances of data may be represented in each DRcluster.

Referring now to FIG. 3A, backup copy A00001 330 is shown as being staleor out-of-date with data on virtual tape A00001 322 or virtual tapeA00001 326. Therefore, data in backup copy A00001 330 should not be usedas an accurate duplicate of the data stored on virtual tape A00001 322or virtual tape A00001 326, which are reliable duplicates of oneanother. All the other backup copies e.g., backup copy 332, backup copy334, etc.) on the DR clusters CL2 316 and CL3 318 are up-to-date withtheir respective virtual tapes on CL0 312 and CL1 314 from which data isduplicated.

When performing DR testing to test the preparedness of the DR site 304,it is not desired to stop duplicating data to the DR clusters 316, 318because an actual disaster may take place, and the data must bebacked-up. Therefore, the data in the backup copies (e.g., 328, 330,332, etc.) may continue to change during the DR testing, which providesfalse impressions of the disaster preparedness of the DR site 304,unless the data is somehow frozen in time.

With reference to FIG. 3B, when an actual disaster takes placeunexpectedly, it is beneficial for the DR host 308 to have access to allthe data that is stored on the production site 302 (which presumably isno longer accessible due to the disaster) via data stored on the DR site304. In order for this to happen, the DR site 304 must continuallyupdate the data which is stored in the individual DR clusters.

Therefore, in order to perform a DR test to determine how well the dataon the production site 302 is represented on the DR site 304, andwithout stopping duplication efforts from the production site 302, oneor more snapshots (e.g., flash copies, physical tape backup copieshaving virtual representations that mimic flash copies, etc.) may becreated that represent all the data stored on each DR cluster at apredetermined time (e.g., a time-zero). These snapshots are indicated bythe virtual tapes having dashed lines, e.g., snapshot of volser A00000336, snapshot of wiser A00001 338, etc. CL2 316 and CL3 318 together nowrepresent a flash family, because all the data stored on CL2 316 and CL3318 have at least one snapshot produced thereof at a time-zero.

In one such embodiment, a time-zero may be selected which represents asimulated disaster event occurrence time (time at which a disaster tookplace), in DR testing, the DR host 308 may attempt to access these oneor more snapshots of the data in the DR clusters 316, 318 to determinehow successful the backup copy on the DR clusters 316, 318 are in caseof an actual disaster.

When the DR host 308 issues a mount request targeting a volume having avolser of A00000 to CL2 316, the DR host 308 may provide a snapshot ofvolser A00000 336 within the cluster to satisfy the mount requestbecause the snapshot of volser A00000 336 is consistent at thetime-zero, in this scenario, CL2 316 is capable of accessing a snapshotof both volumes A00000 and A00001, because snapshots 336 and 338 areup-to-date at the time-zero, as indicated by their white solid taperepresentations.

Now a scenario where a cluster does not include an up-to-date snapshotis described. With reference to FIG. 3C, assume that a volume haying awiser of A00001 is requested to be mounted. CL2 316 is not able tosatisfy the mount request by itself because the snapshot of volserA00001 338 on CL2 316 is not consistent at the time-zero, as indicatedby the cross-hatching (although the live copy version may be replicatedto the cluster 316 sometime after the time-zero and may becomeup-to-date, it would still be stale, as indicated by the cross-hatching,in backup copy of volser A00001 330). In this example, CL2 316 completesthe mount request targeting A00001 by using a snapshot of volser A00001342 on the other cluster, CL3 318, in the same DR family. Snapshot 342is up-to-date and consistent at the time-zero, and therefore may be usedin DR testing. This functionality may be achieved, in one approach, bylooking at the snapshot of the metadata within the DR family only whenit is determined, such as via the microcode, which cluster to provide, asnapshot to the DR host 308 with.

Now referring to FIG. 3D, a scenario where a snapshot of a requestedvolume is not available and a live or backup copy is used instead isdescribed, in accordance with one embodiment. In this scenario, assumethat a request for volumes A00000 and A00001 is issued to the DR host308. The DR host 308 may access the snapshot of volser A00000 336 on CL2316, but the snapshot of volser A00001 338 on CL2 316 is inconsistent attime-zero. Also, the backup copy of volser A00001 330 on CL2 316 isstale at time-zero. However, another cluster CL4 348 within the DRfamily has a backup copy of volser A00001 352 which is up-to-date at thetime-zero. Therefore, CL2 316 may access the backup copy of volserA00001 352 on CL4 348 to fulfill the mount request in the DR testing. Asshown, the backup copy of volser A00000 350 on CL4 348 could not beused, because it is stale at the time-zero.

Of course, the particular scenarios described in relation to FIGS. 3A-3Dare for explanatory purposes only, and any arrangement of sites,clusters, virtual tapes, backup copies, snapshots, and data may be used,as would be understood by one of skill in the art upon reading thepresent descriptions.

No referring to FIG. 4, a method 400 for performing DR testing is shownaccording to one embodiment. The method 400 may be performed inaccordance with the present invention in any of the environmentsdepicted in FIGS. 1-3D, among others, in various embodiments. Of course,more or less operations than those specifically described in FIG. 4 maybe included in method 400, as would be understood by one of skill in theart upon reading the present descriptions.

Each of the steps of the method 400 may be performed by any suitablecomponent of the operating environment. For example, in variousnon-limiting embodiments, the method 400 may be partially or entirelyperformed by a tape drive, a hard disk drive, an optical drive, acontroller, a hierarchal storage manager, a storage library manager, aprocessor (such as a CPU, an ASIC, a FPGA, etc.) which may be embeddedin and/or operate within a system, etc.

As shown in FIG. 4, method 400 may initiate with operation 402, where aDR family is defined. The DR family comprises one or more DR clustersaccessible to a DR host and one or more production clusters accessibleto a production host. Also, the DR host is configured to replicate datafrom the one or more production clusters to the one or more DR clustersin order to create backup copies on the DR clusters of data stored toand/or represented by virtual instances (such as virtual tapes, virtualvolumes, etc.) on the production clusters.

In operation 404, a backup copy of data stored to the one or moreproduction clusters is created. These backup copies may be virtualtapes, virtual volumes, data stored to physical media (such as HDDs,physical tape, etc.), or any other type of data backup known in the art.

In operation 406, the backup copy or copies is/are stored to the one ormore DR clusters. When more than one subset of data is copied from theone or more production clusters, more than one backup copy may becreated on the one or more DR clusters, with each DR cluster receivingat least one backup copy of the data, in one approach.

In operation 408, a time-zero in the DR family is established for DRtesting. The entire DR family shares this time-zero as an indicator ofconsistency between data on the DR clusters and data on the productionclusters. In one embodiment, the time-zero represents a time selected tosimulate a disaster, as selected by a user or automatically in somefunction or routine executed to begin DR testing.

In operation 410, a point-in-time data consistency at the time-zero isshared among all clusters within the DR family, so that consistencyacross the entire DR family may be determined and/or established at thetime-zero. By sharing the point-in-time data consistency at thetime-zero with all clusters within the DR family, each cluster iscapable of performing DR testing using the point-in-time dataconsistency at the time-zero, which is a representation of howsuccessful the backing-up of data is at the time-zero.

In another embodiment, method 400 may further include creating asnapshot of each backup copy stored to the one or more DR clusters. Eachsnapshot represents data stored to the one or more DR clusters at thetime-zero. Therefore, when DR testing is performed, it may be knownwhich backups were consistent with data on the production clusters attime-zero.

Furthermore, method 400 may include performing DR testing using, indescending order of preference: a snapshot from a first cluster withinthe DR family, a snapshot accessed via the first cluster from a secondcluster within the DR family when the first cluster does not include anup-to-date consistent snapshot, a backup copy from the first cluster,and a backup copy from the second cluster when the first cluster doesnot include an up-to-date consistent backup copy. In this way, there aremultiple possible sources of backup data for use in DR testing, allavailable without pausing continuous backup of the data on theproduction clusters.

In another further embodiment, method 400 may include receiving asnapshot initiation request prior to creating the snapshot. In thisembodiment, the DR family is used to determine which DR clusters areaffected by the snapshot initiation request, and therefore proper datais frozen in time at the time-zero for use in DR testing, and not alldata randomly.

The snapshot is a point-in-time flash copy of at least a user dataportion of all virtual tapes of the one or DR clusters, in oneembodiment. The snapshot may be created on all DR clusters within the DRfamily and/or is accessible by all DR clusters within the DR family.Furthermore, in some approaches, the snapshot does not include ametadata portion of the virtual tapes to enable faster creation thereof.Alternatively, the snapshot ma selectively include a metadata portion ofany virtual tape that is in a ‘write-protected’ state, any virtual tapewhere data consistency of data on the virtual tape or key attributes ofthe data have been changed after a last snapshot being taken, or anyvirtual tape that has been mounted after a last snapshot being taken.This also allows for faster creation of the snapshots.

Method 400 may be executed, implemented in, and/or available to beperformed using a system, apparatus, and/or computer program product,according to various embodiments.

According to one embodiment, an apparatus or system may include aprocessor (such as a hardware and/or software processor alone or incombination with the hardware processor) and logic integrated withand/or executable by the processor. The logic may be software-based,hardware-based, and/or a combination thereof according to variousapproaches. Execution of the logic may cause the processor to performmethod 400 or some portion thereof.

In another embodiment, a computer program product may include a computerreadable storage medium having program code embodied therewith, theprogram code being readable and/or executable by a processor. Theprocessor may be implemented in hardware and/or software alone or incombination, and execution of the program code may cause the processorto perform method 400 or some portion thereof.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof code, which comprises one or more executable instructions forimplementing, the specified logical function(s). It should also be notedthat, in some alternative implementations, the functions noted in theblock may occur out of the order noted in the figures. For example, twoblocks shown in succession may, in fact, be executed substantiallyconcurrently, or the blocks may sometimes be executed in the reverseorder, depending upon the functionality involved, it will also be notedthat each block of the block diagrams and/or flowchart illustration, andcombinations of block's in the block diagrams and/or flowchartillustration, can be implemented by special purpose hardware-basedsystems that perform the specified functions or acts, or combinations ofspecial purpose hardware and computer instructions.

While various embodiments have been described above, it should beunderstood that they have been presented by way of example only, and notlimitation. Thus, the breadth and scope of an embodiment of the presentinvention should not be limited by any of the above-described exemplaryembodiments, but should be defined only in accordance with the followingclaims and their equivalents.

What is claimed is:
 1. A system, comprising a processor and logicintegrated with and/or executable by the processor, the logic beingconfigured to cause the processor to: define a disaster recovery (DR)family, the DR family comprising one or more DR clusters accessible to aDR host and one or more production clusters accessible to a productionhost, wherein the DR host is configured to replicate data from the oneor more production clusters to the one or more DR clusters; create abackup copy of data stored to the one or more production clusters; storethe backup copy to the one or more DR clusters; establish a time-zero inthe DR family; and share a point-in-time data consistency at thetime-zero among all clusters within the DR family.
 2. The system asrecited in claim 1, wherein each cluster comprises one or more storagenodes representing a storage device, and wherein the time-zerorepresents a time selected to simulate a disaster.
 3. The system asrecited in claim 1, wherein the logic is further configured to cause theprocessor to create a snapshot of each backup copy stored to the one ormore DR clusters, wherein each snapshot represents data stored to theone or more DR clusters at the time-zero.
 4. The system as recited inclaim 3, wherein the logic is further configured to cause the processorto perform DR testing using, in descending order of preference: asnapshot from a first cluster within the DR family, a snapshot accessedvia the first cluster from a second cluster within the DR family whenthe first cluster does not include an up-to-date consistent snapshot, abackup copy from the first cluster, and a backup copy from the secondcluster when the first cluster does not include an up-to-date consistentbackup copy.
 5. The system as recited in claim 3, wherein the logic isfurther configured to cause the processor to receive a snapshotinitiation request prior to creating the snapshot, wherein the DR familyis used to determine which DR clusters are affected by the snapshotinitiation request.
 6. The system as recited in claim 3, wherein thesnapshot is a point-in-time flash copy of at least a user data portionof all virtual tapes of the one or more DR clusters.
 7. The system asrecited in claim 6, wherein the snapshot is created on all DR clusterswithin the DR family and/or is accessible by all DR clusters within theDR family.
 8. The system as recited in claim 6, with the proviso thatthe snapshot does not include a metadata portion of the virtual tapes.9. The system as recited in claim 6, wherein the snapshot selectivelyincludes a metadata portion of any virtual tape that is in a‘write-protected’ state.
 10. The system as recited in claim 6, whereinthe snapshot selectively includes a metadata portion of the virtualtapes only when: data consistency of data on a virtual tape or keyattributes of the data have been changed, or a virtual tape has beenmounted, after a last snapshot being taken.
 11. A method for disasterrecovery (DR) testing, the method comprising: defining a DR family, theDR family comprising one or more DR clusters accessible to a DR host andone or more production clusters accessible to a production host, whereinthe DR host is configured to replicate data from the one or moreproduction clusters to the one or more DR clusters; creating a backupcopy of data stored to the one or more production clusters; storing thebackup copy to the one or more DR clusters; establishing a time-zero inthe DR family for DR testing; and sharing a point-in-time dataconsistency at the time-zero among all clusters within the DR family.12. The method as recited in claim 11, wherein each cluster comprisesone or more storage nodes representing a storage device, and wherein thetime-zero represents a time selected to simulate a disaster.
 13. Themethod as recited in claim 11, further comprising creating a snapshot ofeach backup copy stored to the one or more DR clusters, wherein eachsnapshot represents data stored to the one or more DR clusters at thetime-zero.
 14. The method as recited in claim 13, further comprisingperforming DR testing using, in descending order of preference asnapshot from a first cluster within the DR family, a snapshot accessedvia the first cluster from a second cluster within the DR family whenthe first cluster does not include an up-to-date consistent snapshot, abackup copy from the first cluster, and a backup copy from the secondcluster when the first cluster does not include an up-to-date consistentbackup copy.
 15. The method as recited in claim 13, further comprisingreceiving a snapshot initiation request prior to creating the snapshot,wherein the DR family is used to determine which DR clusters areaffected by the snapshot initiation request.
 16. The method as recitedin claim 13, wherein the snapshot is a point-in-time flash copy of atleast a user data portion of all virtual tapes of the one or more DRclusters, wherein the snapshot is created on all DR clusters within theDR family and/or is accessible by all DR clusters within the DR family.17. The method as recited in claim 16, with the proviso that thesnapshot does not include a metadata portion of the virtual tapes. 18.The method as recited in claim 16, wherein the snapshot selectivelyincludes a metadata portion of any virtual tape that is in a‘write-protected’ state, any virtual tape where data consistency of dataon the virtual tape or key attributes of the data have been changedafter a last snapshot being taken, or any virtual tape that has beenmounted after a last snapshot being taken.
 19. A computer programproduct for disaster recovery (DR) testing, the computer program productcomprising a computer readable storage medium having program codeembodied therewith, the program code being readable and/or executable bya processor to: define a DR family, the DR family comprising one or moreDR clusters accessible to a DR host and one or more production clustersaccessible to a production host, wherein the DR host is configured toreplicate data from the one or more production clusters to the one ormore DR clusters; create a backup copy of data stored to the one or moreproduction clusters; store the backup copy to the one or more DRclusters; establish a time-zero in the DR family; and share apoint-in-time data consistency at the time-zero among all clusterswithin the DR family.
 20. The computer program product as recited inclaim 19, wherein the program code is further readable and/or executableby the processor to: receive a snapshot initiation request to create asnapshot of each backup copy stored to the one or more DR clusters,wherein the DR family is used to determine which DR clusters areaffected by the snapshot initiation request; create a snapshot of eachbackup copy stored to the one or more DR clusters, wherein each snapshotrepresents data stored to the one or more DR clusters at the time-zero;and perform DR testing using, in descending order of preference: asnapshot from a first cluster within the DR family, a snapshot accessedvia the first cluster from a second cluster within the DR family whenthe first cluster does not include an up-to-date consistent snapshot, abackup copy from the first cluster, and a backup copy from the secondcluster when the first cluster does not include an up-to-date consistentbackup copy, wherein each snapshot is a point-in-time flash copy of atleast a user data portion of all virtual tapes of the one or more DRclusters, and wherein each snapshot is created on all DR clusters withinthe DR family and/or is accessible by all DR clusters within the DRfamily.